from django.contrib import admin
from .models import Equipment
from .models import Classroom, Hygienism


class classroomadmin(admin.ModelAdmin):
    list_display = ['c_name', 'c_people', 'c_Theory', 'c_img']
    list_per_page = 10
    search_fields = ['btitle']


class equipmentadmin(admin.ModelAdmin):
    list_display = ['e_number', 'e_name', 'e_money', 'e_tame', 'e_img', 'e_Theory', 'e_classroom']
    list_per_page = 10
    search_fields = ['btitle']


class hygienismadmin(admin.ModelAdmin):
    list_display = ['h_name', 'h_c_name', 'h_tame', 'h_img', 'h_number', 'h_circumstances', 'h_person']
    list_per_page = 10
    search_fields = ['btitle']


admin.site.register(Classroom, classroomadmin)
admin.site.register(Equipment, equipmentadmin)
admin.site.register(Hygienism, hygienismadmin)
# Register your models here.
